package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * 
 * @TableName orders
 */
@TableName(value ="orders")
@Data
public class Orders implements Serializable {
    /**
     * 订单id
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Long oid;

    /**
     * 用户id
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 商家id
     */
    @TableField(value = "sid")
    private Long sid;
    /**
     * 商品id
     */
    @TableField(value = "gid")
    private Long gid;

    /**
     * 价格
     */
    @TableField(value = "money")
    private Double money;

    /**
     * 总价
     */
    @TableField(value = "pay_money")
    private Double payMoney;

    /**
     * 是否评价2是1否
     */
    @TableField(value = "commit")
    private Integer commit;

    /**
     * 是否追加评价 2是 1否
     */
    @TableField(value = "plus_comment")
    private Integer plusComment;

    /**
     * 收货地址编号
     */
    @TableField(value = "address_id")
    private Long addressId;

    /**
     * "未付款""未发货""运货中""已送达"
     */
    @TableField(value = "status")
    private String status;

    /**
     * 发货地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 图片地址
     */
    @TableField(value = "picture_path")
    private String picturePath;

    /**
     * 收货地址
     */
    @TableField(value = "shipping_address")
    private String shippingAddress;

    /**
     * 商品名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 购买数量
     */
    @TableField(value = "count")
    private Long count;

    /**
     * 订单号
     */
    @TableField(value = "order_number")
    private String orderNumber;

    /**
     * 是否确认收货
     */
    @TableField(value = "confirmed")
    private Integer confirmed;


    /**
     * 创建日期（发货时间）
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改日期
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}